# Author    : CoffeeChicken
# Date      : 2020-12-02 20:44
# Function  : 演示 分析个人用户url

import requests
import re

user_url = "https://v.douyin.com/JCArAkr/"

response = requests.get(user_url)

redirect_url = response.url

reg = ".*sec_uid=(.*?)&"

# sec_uid = re.match(reg, redirect_url).group(1)

# sec = sec_uid.split("&")[0]
# print(sec)
# 获取sec_uid
print(re.match(reg, redirect_url).group(1))
